package mi.payment.utils.transaction;

import android.content.Context;

import java.util.HashMap;
import java.util.Map;

import mi.payment.bean.db.TradeData;
import mi.payment.utils.iso8583.MsgField;

/**
 * 银行卡交易查询
 *
 * @author tomcat on 2017/2/17.
 */
public class QueryRetTask extends TransactionTask<TradeData, Void, TradeData> {

    public QueryRetTask(Context context) {
        super(context, false);
    }

    @Override
    protected void onBegin(TradeData[] params) {
        tradeData = params[0];
        dbBean = tradeData.getPayDetail();
    }

    @Override
    protected TradeData appointResult() {
        return tradeData;
    }

    @Override
    protected Map<String, MsgField> preAssembly() {
        // 预组装
        return null;
    }

    @Override
    protected byte[] changeAndAssembly(Map<String, MsgField> fieldMap) {
        return null;
    }

    @Override
    protected void onUnpacked(HashMap<String, MsgField> resp) {
        super.onUnpacked(resp);
    }

}
